package com.jwater.core.manager.common.model;

/**
 * @description: 管理进程信息
 * @author: jnner
 * @createDate: 2021/2/5
 * @version: 1.0
 */
public class MasterInfo {
    private int index;
    private String host;
    private int innerPort;
    private int outerPort;
    private boolean online;
    private String homePath;
    private String uptime;

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getInnerPort() {
        return innerPort;
    }

    public void setInnerPort(int innerPort) {
        this.innerPort = innerPort;
    }

    public int getOuterPort() {
        return outerPort;
    }

    public void setOuterPort(int outerPort) {
        this.outerPort = outerPort;
    }

    public boolean isOnline() {
        return online;
    }

    public void setOnline(boolean online) {
        this.online = online;
    }

    public String getHomePath() {
        return homePath;
    }

    public void setHomePath(String homePath) {
        this.homePath = homePath;
    }

    public String getUptime() {
        return uptime;
    }

    public void setUptime(String uptime) {
        this.uptime = uptime;
    }

    @Override
    public String toString() {
        return "MasterInfo [index=" + index + ", host=" + host + ", innerPort=" + innerPort + ", outerPort=" + outerPort
                + ", online=" + online + "]";
    }
}
